package com.easy.auth.service.impl;

import com.easy.auth.util.TokenUtil;
import com.easy.common.service.ITokenService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class TokenServiceImpl implements ITokenService {
    @Override
    public boolean checkToken(String token) {
        return TokenUtil.verifyToken(token);
    }

    @Override
    public Object getOption(String token, String key) {
        return TokenUtil.getPayload(token, key);
    }
}
